package student.aistar.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 本类用来演示: 注入第三的bean,让这些bean受spring管理
 *
 * @author: success
 * @date: 2021/10/8 3:21 下午
 */
@Configuration
public class BeanConfig {

    //<bean id="" class="">
    @Bean
    public BCryptPasswordEncoder encoder(){
        return new BCryptPasswordEncoder();
    }
}
